package com.stylefeng.guns.core.util;

import java.util.HashMap;
import java.util.Map;

public class RestUtil {

	public static Map<String,Boolean> isRestMaps = new HashMap<String, Boolean>();
	
	public static boolean isRest(String date){
		if(isRestMaps.containsKey(date)){
			return isRestMaps.get(date);
		}else{
			isRestMaps.put(date, WeekUtils.isHolidayByK780(date));
			return isRestMaps.get(date);
		}
	}
	
	public static void clean(){
		isRestMaps.clear();
	}
}
